package com.huaguoguo.base.service;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * description: redis服务类
 * author:huaguoguo
 * Date: 2019/1/25
 * Time: 18:55
 */
public interface RedisService {

    /**
     * 写入缓存
     * @param key
     * @param value
     * @return
     */
    @RequestMapping(value = "set",method = RequestMethod.GET)
    public boolean set(@RequestParam("key") final String key, @RequestParam("value") Object value);
}
